<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>模块增加</title>
<link rel="stylesheet" href="<%=basePath%>res/wzw/layui/css/layui.css"
	media="all">
<style type="text/css">
#goodsImg {
	position: relative;
	left: 110px;
}
</style>
</head>
<body>

	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 20px;">
		<legend>模块增加列表</legend>
	</fieldset>

	<form class="layui-form"
		action="<%=basePath%>module/saveOrUpdate" method="post">
		<input type="hidden" id="goodsId" name="id">
		<!-- <div class="layui-form-item">
    	<label class="layui-form-label">模块ID</label>
    	<div class="layui-input-block">
      		<input type="text" name="vo.modId" id="modId" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
   	 	</div>
  	</div> -->
		<!-- <div class="layui-form-item">
    	<label class="layui-form-label">上级_模块ID</label>
    	<div class="layui-input-block">
      		<input type="text" name="vo.ehyModule" id="ehyModule" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
   	 	</div>
  	</div> -->
		<div class="layui-form-item">
			<label class="layui-form-label">模块名称</label>
			<div class="layui-input-block">
				<input type="text" name="mod_name" id="modName" lay-verify="required"
					placeholder="请输入" autocomplete="off" class="layui-input"
					maxlength="20">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">模块编码</label>
			<div class="layui-input-block">
				<select name="mod_code" id="modCode" required lay-verify="required"
					autocomplete="off" class="layui-input">
					<option></option>
					<option value="gl">管理模块</option>
					<option value="dj">店家模块</option>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">模块说明</label>
			<div class="layui-input-block">
				<input type="text" name="mod_desc" id="modDesc" lay-verify="required"
					placeholder="请输入" autocomplete="off" class="layui-input"
					maxlength="20">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">是否有效</label>
			<div class="layui-input-block">
				<select name="isva" id="isva" required lay-verify="required"
					autocomplete="off" class="layui-input">
					<option></option>
					<option value="0">无效</option>
					<option value="1">有效</option>
				</select>
			</div>
		</div>
		<!-- <div class="layui-form-item">
    	<label class="layui-form-label">操作时间</label>
    	<div class="layui-input-block">
      		<input type="date" name="vo.optime" id="optime" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input" >
   	 	</div>
  	</div> -->
		<div class="layui-form-item">
			<label class="layui-form-label">操作人</label>
			<div class="layui-input-block">
				<input type="text" name="oper" id="oper" lay-verify="required"
					placeholder="请输入" autocomplete="off" class="layui-input"
					maxlength="20">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">URL</label>
			<div class="layui-input-block">
				<input type="text" name="url" id="url" lay-verify="required"
					placeholder="请输入" autocomplete="off" class="layui-input"
					maxlength="20">
			</div>
		</div>

		<!-- 提交重置 -->
		<div class="layui-form-item">
			<div class="layui-input-block">
				<input type="submit" class="layui-btn" lay-submit=""
					lay-filter="moduleAdd" value="立即提交">
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>

	<script src="<%=basePath%>res/wzw/layui/layui.js"></script>
	<script type="text/javascript" src="res/wzw/layui/js/jquery.min.js"></script>
	<script>
	layui.use(['form', 'layer'], function(){
	  var form = layui.form
	  ,layer = layui.layer
	  ,$ = layui.$;
	  form.on('submit(moduleAdd)',function(){
		  parent.location.reload(); // 父页面刷新
	  });
	  
	});
	
</script>

</body>
</html>